package com.just.fun.arithmetic;

public class SlidingNode {
    private int id;
    private long time;
    private long counter;
    private SlidingNode next;

    public SlidingNode(int id, long time, long counter) {
        this.id = id;
        this.time = time;
        this.counter = counter;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public long getCounter() {
        return counter;
    }

    public void setCounter(long counter) {
        this.counter = counter;
    }

    public SlidingNode getNext() {
        return next;
    }

    public void setNext(SlidingNode next) {
        this.next = next;
    }

    @Override
    public String toString() {
        return "SlidingNode{" +
                "id=" + id +
                ", time=" + time +
                ", counter=" + counter +
                ", next=" + next +
                '}';
    }

    public void addCounter(){
        this.counter=this.counter+1;
    }
}
